package com.itheima.App;

import com.itheima.Dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserDaotest {
    public static void main(String[] args) {
        ApplicationContext ca = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserDao userDao = (UserDao) ca.getBean("UserDao");
        userDao.user();
    }
}
